Page({

 
  data: {
    secondHand : null
  },

  
  onLoad: function (options) {
    let secondHandId = options.id;
    getSeconHandDetail(secondHandId,this);
  }
  
  
  
});



const getSeconHandDetail = function (secondHandId, _this) {

  wx.request({
    url: 'https://dorm.dormassistant.wang:8080/secondHand/querySecondHandById',
    data: {
      secondHandId: secondHandId
    },
    method: "GET",
    success: function (res) {
     _this.setData({
       secondHand: res.data.secondHand
      });
    }
  });

}